package com.nm.orm.dao;

import com.nm.commons.exception.SupperException;
import com.nm.orm.dao.pageParam.ArticleBackPageInput;
import com.nm.orm.dao.pageParam.ArticlePageInput;
import com.nm.orm.pojo.ArticleEntity;
import com.nm.orm.pojo.out.ArticleBackPageOutput;
import com.nm.orm.pojo.out.ArticleOutput;
import com.nm.service.page.PageEntity;

import java.util.List;

/**
 * Created by hewu on 2017/2/7 0007.
 */
public interface ArticleDao extends Dao<ArticleEntity, String> {

    List<ArticleEntity> findAll() throws SupperException;

//    PageEntity<ArticleOutput> page(ArticlePageInput input);

    PageEntity<ArticleBackPageOutput> backPage(ArticleBackPageInput input);
}
